package com.dormitory_springboot.controller;

import com.dormitory_springboot.utils.JWTutil;
import org.springframework.web.bind.annotation.*;

/**
 * @auther 夏杨
 **/
@RestController
@RequestMapping("/JWT")
public class JWTController {
    @GetMapping("/check/{token}")
    public boolean check(@PathVariable("token") String token){
        return JWTutil.resolveJwt(token);
    }
//    @GetMapping("/lapse/{token}")
//    public boolean lapse(@PathVariable("token")String token){
//        return JWTutil.invalidateJwt(token);
//    }
}
